﻿/*  
 *  IIS LogFile Analyser, Copyright (C) 2013. http://www.iis-analyser.com
 *  --
 *  This program is free software, provided "AS IS" WITHOUT ANY WARRANTY; without even the implied warranty of 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
 * 
 *  File Author: Ian Quigley,    2013-02-23
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataStore;
using System.Configuration;
using System.Text;

namespace Web
{
    public partial class RawSql : System.Web.UI.Page
    {
        protected void Page_Load( object sender, EventArgs e )
        {

        }

        protected void btnFire_Click( object sender, EventArgs e )
        {
            var store = new Store( ConfigurationManager.AppSettings["dbfile"] );

            /*
            var result = store.SQL( txtSQL.Text );

            StringBuilder html = new StringBuilder();
            html.Append( "<table>" );
            foreach (var vals in result)
            {
                html.Append( "<tr>" );
                foreach (var item in vals)
                    html.AppendFormat( "<td>{0}</td>", item );
                html.Append( "</tr>" );
            }
            html.Append( "</table>" );
            litResult.Text = html.ToString();
             */ 
        }
    }
}